package com.ruoyi.web.controller.credit;

import com.ruoyi.common.core.controller.BaseController;

import com.ruoyi.system.domain.RptMid1DTO;
import com.ruoyi.system.mapper.ReportMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.List;


@Controller
@RequestMapping("/rpt")
public class ReportController extends BaseController
{
    @Autowired
    private ReportMapper reportMapper;

    @GetMapping("/left1")
    @ResponseBody
    public List<?> left1(@RequestParam String serverType)
    {
        return reportMapper.left1Data(serverType);
    }

    @GetMapping("/left2")
    @ResponseBody
    public List<?> left2()
    {
        return reportMapper.left2Data();
    }

    @GetMapping("/left3")
    @ResponseBody
    public List<?> left3()
    {
        return reportMapper.left3Data();
    }

    @GetMapping("/mid1")
    @ResponseBody
    public RptMid1DTO mid1()
    {
        return reportMapper.mid1Data();
    }

    @GetMapping("/mid2")
    @ResponseBody
    public List<?> mid2()
    {
        return reportMapper.mid2Data();
    }

    @GetMapping("/right11")
    @ResponseBody
    public List<?> right11()
    {
        return reportMapper.right11Data();
    }

    @GetMapping("/right12")
    @ResponseBody
    public List<?> right12()
    {
        return reportMapper.right12Data();
    }

    @GetMapping("/right13")
    @ResponseBody
    public List<?> right13()
    {
        return reportMapper.right13Data();
    }

    @GetMapping("/right14")
    @ResponseBody
    public List<?> right14()
    {
        return reportMapper.right14Data();
    }

    @GetMapping("/right2")
    @ResponseBody
    public List<?> right2()
    {
        return reportMapper.right2Data();
    }

}
